<?php
class friend_linkWidget extends Widget {

	public function render(){
        
        //instance model
        $link_model = $this->model('friend_links');
        
        $link_data = $link_model->getAll('link_status=1', null, array('link_name', 'link_url', 'link_note'), 'sort_order asc');
        
        //display widget
        include $this->view();
	}
}